<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<button id="subBtn">api</button>
</body>
<script>
    $("#subBtn").click(function () {
        $.ajax({
            url: "http://localhost:50000/role/search_like",
            method: "POST",
            headers: {
                "token": "",
                "Content-Type": "application/json"
            },
            data: JSON.stringify({
                "roleName": "ADMIN"
            }),
            dataType: "json",
            success: function (res) {
                console.log(res);
            }
        })
    })
</script>
</html>